<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>设备表</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
</head>
<body style="overflow-y: hidden" scroll="no">
	<t:formvalid formid="formobj" dialog="true" usePlugin="password"
		layout="table" action="gem_manu_equipmentController.do?save">
		<input id="id" name="id" type="hidden"
			value="${gem_manu_equipmentPage.id }">
		<input id="typemid" name="typemid" type="hidden"
		value="${typemid}">
		<table style="width: 600px;" cellpadding="0" cellspacing="1"
			class="formtable">
			<tr>
				<td align="right"><label class="Validform_label"> 所属部门:
				</label></td>
				<td class="value"><input class="inputxt" id="sysOrgCode"
					name="sysOrgCode" ignore="ignore"
					value="${gem_manu_equipmentPage.sysOrgCode}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 所属公司:
				</label></td>
				<td class="value"><input class="inputxt" id="sysCompanyCode"
					name="sysCompanyCode" ignore="ignore"
					value="${gem_manu_equipmentPage.sysCompanyCode}"> <span
					class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 流程状态:
				</label></td>
				<td class="value"><input class="inputxt" id="bpmStatus"
					name="bpmStatus" ignore="ignore"
					value="${gem_manu_equipmentPage.bpmStatus}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 设备编号:
				</label></td>
				<td class="value"><input class="inputxt" id="numbers"
					name="numbers" ignore="ignore"
					value="${gem_manu_equipmentPage.numbers}"> <span
					class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 设备名称:
				</label></td>
				<td class="value"><input class="inputxt" id="names"
					name="names" ignore="ignore"
					value="${gem_manu_equipmentPage.names}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 设备类型:
				</label></td>
				<td class="value"><input class="easyui-combobox" id="types"
					name="types" ignore="ignore"
					value="${gem_manu_equipmentPage.types}"> <%-- <input class="easyui-combox" id="types" name="types" ignore="ignore"
							   value="${gem_manu_equipmentPage.types}"> --%> <span
					class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 安装位置:
				</label></td>
				<td class="value"><input class="inputxt" id="locations"
					name="locations" ignore="ignore"
					value="${gem_manu_equipmentPage.locations}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 制造商:
				</label></td>
				<td class="value"><input class="inputxt" id="producers"
					name="producers" ignore="ignore"
					value="${gem_manu_equipmentPage.producers}"> <span
					class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 制造编号:
				</label></td>
				<td class="value"><input class="inputxt" id="manuNumber"
					name="manuNumber" ignore="ignore"
					value="${gem_manu_equipmentPage.manuNumber}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 制造日期:
				</label></td>
				<td class="value"><input class="Wdate" onClick="WdatePicker()"
					style="width: 150px" id="maunDate" name="maunDate" ignore="ignore"
					value="<fmt:formatDate value='${gem_manu_equipmentPage.maunDate}' type="date" pattern="yyyy-MM-dd"/>">
					<span class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 始用时间:
				</label></td>
				<td class="value"><input class="Wdate" onClick="WdatePicker()"
					style="width: 150px" id="startDate" name="startDate"
					ignore="ignore"
					value="<fmt:formatDate value='${gem_manu_equipmentPage.startDate}' type="date" pattern="yyyy-MM-dd"/>">
					<span class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 在用状态:
				</label></td>
				<td class="value"><select id="usedState" name="usedState"
					class="form-control">
						<option value="0">运行中</option>
						<option value="1">使用中</option>
						<option value="2">停用中</option>
						<option value="3">维护中</option>
				</select> <%-- 						<input class="inputxt" id="usedState" name="usedState" ignore="ignore"
							   value="${gem_manu_equipmentPage.usedState}"> --%> <span
					class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 所属部门:
				</label></td>
				<td class="value"><input class="inputxt" id="department"
					name="department" ignore="ignore"
					value="${gem_manu_equipmentPage.department}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 负责人:
				</label></td>
				<td class="value"><input class="inputxt" id="principal"
					name="principal" ignore="ignore"
					value="${gem_manu_equipmentPage.principal}"> <span
					class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 设备描述:
				</label></td>
				<td class="value"><input class="inputxt" id="decription"
					name="decription" ignore="ignore"
					value="${gem_manu_equipmentPage.decription}"> <span
					class="Validform_checktip"></span></td>
				<td align="right"><label class="Validform_label"> 备注: </label>
				</td>
				<td class="value"><input class="inputxt" id="remark"
					name="remark" ignore="ignore"
					value="${gem_manu_equipmentPage.remark}"> <span
					class="Validform_checktip"></span></td>
			</tr>
		</table>
	</t:formvalid>
</body>
<script type="text/javaScript">
	$(document).ready(function() {
		var typemid = $("#typemid").val();
		var types = $('#types').combobox({
			url : "gem_equip_typeController.do?typelist&_typeid="+typemid,
			width : 162,
			valueField : "id",
			textField : "text",
			editable : false,
			onChange : function(record) {
				$("#types").val(record.id);
			}
		});
		//根据id 设置默认选中值
		$('#types').combobox('setValue',typemid);
	})
</script>